<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪数组</title>
</head>

<body>
    <script>
        var arrayLike = {
            "0": "1",
            "1": "2",
            "length": "2"
        }
        var ary = Array.from(arrayLike, item => item * 3)
        console.log(ary);
    </script>
</body>

</html>